package com.shli.dao;

import com.shli.domain.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class UserDao extends BaseDao<User> {
    public List<User> queryByName(String username)
    {
        String hql = "from user vs where user.username like ?";
        return (List<User>) find(hql,username);
    }
}
